package com.tx.java.chapter7.exercise6;

/**
 * 子类
 */
public class ChildClass extends BaseClass {
    public ChildClass() {
        //相当于隐藏了调用父类的构造方法
        System.out.println("子类被调用啦");
    }

    public ChildClass(int i){
        System.out.println("调用子类有参构造函数");
    }
}
